from flask.views import MethodView
from flask import render_template
class task2_API(MethodView):
    def get(self):
        return render_template('task2.html')
    def post(self):
        return 'task2_post'
    def delete(self):
        return 'task2_delete'
    def put(self):
        return 'task2_put'




